package com.lhcai.nk;


import java.math.BigInteger;
import java.util.Scanner;

/**
 * @author lhcstart
 * @create 2023-02-15 21:27
 */
public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine().replace("[", "");
        str = str.replace(",", "");
        str = str.replace("]", "");
        str = str.replace(" ", "");
        int n = str.length();
        System.out.println(str + n);

    }
}
